/*
 * Copyright (c) 2024. Shanghai HEADING information Engineering Co., Ltd. All rights reserved.
 */
package com.lovely602.design.study.basic;

/**
 * @author lizhixing
 */
public class StringBufferTest {

  public static void main(String[] args) {
    StringBuffer sb = new StringBuffer();
    // 添加字符串
    sb.append("123456789");
    System.out.println(sb);
    // 实现字符串反转
    sb.reverse();
    System.out.println(sb);
  }
}
